import request from "@/utils/request";

/**
 * 分页查询反馈记录
 * @param param
 * @returns {AxiosPromise}
 */
export function page(param) {
    return request({
        url: '/feedback-record/page',
        method: 'get',
        params: param
    })
}

/**
 * 删除反馈记录类型
 * @param uuid
 * @returns {AxiosPromise}
 */
export function deleted(uuid){
    return request({
        url: '/feedback-record-type/delete/' + uuid,
        method : 'delete'
    })
}

/**
 * 添加反馈记录类型
 * @returns {AxiosPromise}
 * @param param
 */
export function add(param){
    return request({
        url: '/feedback-record-type/add',
        method : 'post',
        data: param
    })
}

/**
 * 修改反馈记录类型
 * @returns {AxiosPromise}
 * @param param
 */
export function update(param){
    return request({
        url: '/feedback-record-type/update/' + param.uuid,
        method : 'put',
        data: param
    })
}
